package com.wang.vagus.base;


public enum ResultEnum {
    SUCCESS(1,"请求成功"),
    FAIL(0,"请求失败"),
    TOKEN_EXPIRED(40001,"token过期"),
    TOKEN_SIGNATURE_EXCEPTION(40002,"token签名异常"),
    TOKEN_FORMAT_EXCEPTION(40003,"token格式异常"),
    USER_NOT_FOUND(50001,"该用户不存在"),
    PASSWORD_ERROR(50002,"密码错误"),
    ;

    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
